﻿@model IEnumerable<Learnive.Models.Vakje>

@{
    ViewBag.Title = "Vakken";
}

<h2>Vakken</h2>

<div class="userTable2" >
	<table >
		<tr> 
			<th>
                @Html.DisplayNameFor(model => model.vakCode)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.vakNaam)
            </th>
		</tr>
		@foreach (var item in Model) {
            <tr>
                <td>
                    @Html.ActionLink(item.vakCode, "Details", new { id=item.vakID }) 
                </td>
                <td>
                    @Html.ActionLink(item.vakNaam, "Details", new { id=item.vakID }) 
                </td>
            </tr>
        }
	</table>
</div>

<br /><br />

@*<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.vakCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.vakNaam)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.presentatie)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.opdrachten)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.algemeneOmschrijving)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.competentieLeerdoel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.toetsingBeoordeling)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.bronnen)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.vakCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.vakNaam)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.presentatie)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.opdrachten)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.algemeneOmschrijving)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.competentieLeerdoel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.toetsingBeoordeling)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bronnen)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.vakID }) |
            @Html.ActionLink("Details", "Details", new { id=item.vakID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.vakID })
        </td>
    </tr>
}

</table>*@
